<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
<meta name="decorator" content="sysDefault"
	content="text/html; charset=utf-8" />
<link
	href="${staticPath}/lib/datetimepicker/0.0.11/css/bootstrap-datetimepicker.min.css"
	rel="stylesheet" type="text/css">
<link href="${staticPath}/lib/chosen/1.1.0/chosen.min.css"
	rel="stylesheet" type="text/css">
<link rel="stylesheet"
	href="${staticPath}/lib/ztree/3.5/css/zTreeStyle/zTreeStyle.css"
	type="text/css">
<script src="${staticPath}/lib/ztree/3.5/js/jquery.ztree.all-3.5.js"
	type="text/javascript"></script>
<script src="${staticPath}/js/jquery-dialog.js" type="text/javascript"></script>

<script type="text/javascript">
	$(document).ready(function (){
		$("#savebtn").click(function(){			
			if($("#name").val()==null||$("#name").val()==''){
				alert('请填写皮肤名称');
				return false;
			}
			else if($("#skin").val()==null||$("#skin").val()==''){
				alert('请填写皮肤包名');
				return false;
			}
			return true;
		});
	});
</script>

</head>
<body>
	<div class="container-fluid">
		<div class="row">
			<div class="col-xs-12">
				<div class="panel panel-default">
					<div class="panel-heading">
						<h3 class="panel-title">
							修改皮肤 <a class="btn btn-default btn-sm pull-right" role="button"
								href="javascript:void(0)" onclick="history.go(-1)">返回</a>
						</h3>
					</div>
					<div class="panel-body">
						<div class="col-xs-10">
							<!--<div class="panel-body">-->
							<form:form id="cityForm" modelAttribute="siteSkin"
								action="${contextPath}/sys/site/skin/saveUpdateSkin"
								method="post" class="form-horizontal" role="form">
								<form:hidden path="id" />
								<div class="form-group">
									<div class="col-sm-6">
											<label for="name" class="col-sm-4 control-label">皮肤名称</label>
											<div class="col-sm-8">
												<form:input id="name" path="name" htmlEscape="false"
													class="form-control required"/>
											</div>
									</div>
									
									<div class="col-sm-6">
										<label for="skin" class="col-sm-4 control-label">皮肤包名</label>
										<div class="col-sm-8">
											<form:input id="skin" path="skin" htmlEscape="false"
												class="form-control required" />
										</div>
									</div>
								</div>
								<div class="form-group">
									<div class="col-sm-6">
											<label for="remark" class="col-sm-4 control-label">详细描述</label>
											<div class="col-sm-8">
												<form:textarea id="remark" path="remark" htmlEscape="false"
													class="form-control required"/>
											</div>
									</div>
									<div class="col-sm-6">
											<label for="isDefault" class="col-sm-4 control-label">是否默认</label>
											<div class="col-sm-8">
												<ossp:radio dictType="YESORNO" name="isDefault" style="margin-top:10px;" value="${siteSkin.isDefault}"></ossp:radio>
											</div>
									</div>
								</div>
									<div class="form-group">
										<div class="col-sm-offset-6 col-sm-10">
											<input class="btn btn-primary" id="savebtn" type="submit" value="保 存" />
										</div>
									</div>
							</form:form>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</body>
</html>